package com.stone.starter.core.config;

import com.stone.starter.core.helper.ApplicationContextHelper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * starter-core自动注入配置类
 *
 * @author Mr_wenpan@163.com 2021/07/15 10:30
 */
@Configuration
public class StarterCoreAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(ApplicationContextHelper.class)
    public ApplicationContextHelper stoneApplicationContextHelper() {
        return new ApplicationContextHelper();
    }

}
